package store.aixx.security.ch4.annotating;

import store.aixx.security.ch4.validation.PasswordMatchValidtor;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author yukai
 * @since 2021年12月05日 14:46
 */
@Target({ElementType.FIELD, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = PasswordMatchValidtor.class)
@Documented
public @interface PasswordMatch {

    String message() default "Password Not Match";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
